package jps_s10996_s7175.expression.unary;

import edu.pjwstk.jps.ast.IExpression;
import edu.pjwstk.jps.ast.unary.IUnaryExpression;
import edu.pjwstk.jps.visitor.ASTVisitor;
import jps_s10996_s7175.ast.Expression;

/**
 *
 * @author Tomasz
 */
public class UnaryExpression extends Expression implements IUnaryExpression{
    
    private IExpression InnerExpression;
    
    public UnaryExpression(IExpression oExpression){
        this.InnerExpression = oExpression;
    }
    
    @Override
    public IExpression getInnerExpression() {
        return this.InnerExpression;
    }
    
    @Override
    public void accept(ASTVisitor visitor) {}

    @Override
    public String toString() {
        return this.getClass().getName() + " > " + this.InnerExpression.toString() + "\n";
    }
}
